cmake_minimum_required(VERSION 3.0.0)
project(MultiFunctionPTZCameraTank VERSION 0.1.0)

# // -----> SignalAndImageTransition Project
execute_process(
	COMMAND mkdir ${CMAKE_CURRENT_BINARY_DIR}/SignalAndImageTransition
	)

execute_process(
	COMMAND rm ${CMAKE_CURRENT_BINARY_DIR}/SignalAndImageTransition/CMakeCache.txt
	)

execute_process(
	COMMAND cmake ../../SignalAndImageTransition
	WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/SignalAndImageTransition
	)

add_custom_target(
	SignalAndImageTransition
	ALL
	COMMAND
		${CMAKE_COMMAND} -E mkdir ${CMAKE_CURRENT_BINARY_DIR}/SignalAndImageTransition ||
		cd ${CMAKE_CURRENT_BINARY_DIR}/SignalAndImageTransition &&
		cmake ../../SignalAndImageTransition &&
		make -j8
	WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
	)
# // -----> SignalAndImageTransition Project End

add_subdirectory(TankPowerAndPTZControlSystem)
add_subdirectory(ImageProcessingLib)
